//
//  RegionSearchTableViewCell.m
//  location
//
//  Created by Dongxiang Xu on 2025/9/17.
//

#import "RegionSearchTableViewCell.h"

@implementation RegionSearchTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.contentView.backgroundColor = RealWhiteColor;
       
        _title = [[UILabel alloc] initWithFrame:CGRectMake(20, 16, SCREEN_WIDTH-40, 24)];
        _title.font = REAL_MEDIUM_FONT(16);
        _title.textColor = RealBlackColor;
        [self.contentView addSubview:_title];
        
        _subTitle = [[UILabel alloc] initWithFrame:CGRectMake(20, _title.maxY+2, SCREEN_WIDTH-40, 18)];
        _subTitle.font = DEFAULT_FONT(14);
        _subTitle.textColor = [GraryHeavyLightColor colorWithAlphaComponent:0.6];
        [self.contentView addSubview:_subTitle];
        
        UIImageView *line = [[UIImageView alloc] initWithFrame:CGRectMake(_title.x, 75,_title.width, 1)];
        line.image = [UIImage imageNamed:@"line"];
        [self.contentView addSubview:line];
    }
    return self;
}




@end
